<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta content="width=device-width, initial-scale=1.0" name="viewport">
    <title>Spring Security 6 学习中心</title>
    <link th:href="@{/css/css2.css}">
    <!-- Bootstrap CSS -->
    <link rel="stylesheet" th:href="@{/webjars/bootstrap/5.1.3/css/bootstrap.min.css}">
    <!-- Font Awesome -->
    <link rel="stylesheet" th:href="@{/webjars/font-awesome/5.15.4/css/all.min.css}">
    <style>
        :root {
            --primary: #4a6bff;
            --secondary: #6c757d;
            --success: #28a745;
            --danger: #dc3545;
            --light: #f8f9fa;
            --dark: #343a40;
            --gradient-start: #667eea;
            --gradient-end: #764ba2;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Poppins', sans-serif;
            background-color: #f5f7ff;
            color: #333;
            line-height: 1.6;
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }

        /* 导航栏 */
        header {
            background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
            color: white;
            padding: 20px 0;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
            position: fixed;
            width: 100%;
            top: 0;
            z-index: 1000;
        }

        nav {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .logo {
            font-size: 24px;
            font-weight: 700;
            display: flex;
            align-items: center;
        }

        .logo i {
            margin-right: 10px;
            color: #ffcc00;
        }

        .nav-links {
            display: flex;
            list-style: none;
        }

        .nav-links li {
            margin-left: 30px;
        }

        .nav-links a {
            color: white;
            text-decoration: none;
            font-weight: 500;
            transition: all 0.3s ease;
            padding: 8px 12px;
            border-radius: 4px;
        }

        .nav-links a:hover {
            background-color: rgba(255, 255, 255, 0.2);
        }

        /* 英雄区域 */
        .hero {
            height: 100vh;
            display: flex;
            align-items: center;
            background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://images.unsplash.com/photo-1550751827-4bd374c3f58b?ixlib=rb-4.0.3&auto=format&fit=crop&w=1350&q=80');
            background-size: cover;
            background-position: center;
            color: white;
            text-align: center;
            padding-top: 80px;
        }

        .hero-content {
            max-width: 800px;
            margin: 0 auto;
        }

        .hero h1 {
            font-size: 3.5rem;
            margin-bottom: 20px;
            line-height: 1.2;
        }

        .hero p {
            font-size: 1.2rem;
            margin-bottom: 30px;
            opacity: 0.9;
        }

        .btn {
            display: inline-block;
            padding: 12px 30px;
            background-color: var(--primary);
            color: white;
            text-decoration: none;
            border-radius: 50px;
            font-weight: 600;
            transition: all 0.3s ease;
            border: none;
            cursor: pointer;
            margin: 10px;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        }

        .btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
            background-color: #3a56d4;
        }

        .btn-outline {
            background-color: transparent;
            border: 2px solid white;
        }

        .btn-outline:hover {
            background-color: white;
            color: var(--primary);
        }

        /* 特性部分 */
        .features {
            padding: 100px 0;
            background-color: white;
        }

        .section-title {
            text-align: center;
            margin-bottom: 60px;
        }

        .section-title h2 {
            font-size: 2.5rem;
            color: var(--dark);
            margin-bottom: 15px;
        }

        .section-title p {
            color: var(--secondary);
            max-width: 700px;
            margin: 0 auto;
        }

        .features-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 30px;
        }

        .feature-card {
            background-color: var(--light);
            padding: 30px;
            border-radius: 10px;
            text-align: center;
            transition: all 0.3s ease;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
        }

        .feature-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
        }

        .feature-icon {
            font-size: 3rem;
            color: var(--primary);
            margin-bottom: 20px;
        }

        .feature-card h3 {
            font-size: 1.5rem;
            margin-bottom: 15px;
            color: var(--dark);
        }

        /* 文档部分 */
        .docs {
            padding: 100px 0;
            background-color: #f5f7ff;
        }

        .docs-cards {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
            gap: 30px;
        }

        .doc-card {
            background-color: white;
            border-radius: 10px;
            overflow: hidden;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
            transition: all 0.3s ease;
        }

        .doc-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
        }

        .doc-image {
            height: 200px;
            background-size: cover;
            background-position: center;
        }

        .doc-card:nth-child(1) .doc-image {
            background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('https://images.unsplash.com/photo-1551288049-bebda4e38f71?ixlib=rb-4.0.3&auto=format&fit=crop&w=1350&q=80');
        }

        .doc-card:nth-child(2) .doc-image {
            background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('https://images.unsplash.com/photo-1461749280684-dccba630e2f6?ixlib=rb-4.0.3&auto=format&fit=crop&w=1350&q=80');
        }

        .doc-content {
            padding: 30px;
        }

        .doc-content h3 {
            font-size: 1.5rem;
            margin-bottom: 15px;
            color: var(--dark);
        }

        .doc-content p {
            color: var(--secondary);
            margin-bottom: 20px;
        }

        /* 页脚 */
        footer {
            background-color: var(--dark);
            color: white;
            padding: 60px 0 20px;
        }

        .footer-content {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 40px;
            margin-bottom: 40px;
        }

        .footer-column h3 {
            font-size: 1.3rem;
            margin-bottom: 20px;
            position: relative;
            padding-bottom: 10px;
        }

        .footer-column h3::after {
            content: '';
            position: absolute;
            left: 0;
            bottom: 0;
            width: 50px;
            height: 2px;
            background-color: var(--primary);
        }

        .footer-column p {
            opacity: 0.8;
            margin-bottom: 15px;
        }

        .footer-links {
            list-style: none;
        }

        .footer-links li {
            margin-bottom: 10px;
        }

        .footer-links a {
            color: white;
            text-decoration: none;
            opacity: 0.8;
            transition: all 0.3s ease;
        }

        .footer-links a:hover {
            opacity: 1;
            padding-left: 5px;
        }

        .social-links {
            display: flex;
            gap: 15px;
        }

        .social-links a {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 40px;
            height: 40px;
            background-color: rgba(255, 255, 255, 0.1);
            border-radius: 50%;
            color: white;
            transition: all 0.3s ease;
        }

        .social-links a:hover {
            background-color: var(--primary);
            transform: translateY(-3px);
        }

        .footer-bottom {
            text-align: center;
            padding-top: 20px;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            opacity: 0.7;
            font-size: 0.9rem;
        }

        /* 响应式设计 */
        @media (max-width: 768px) {
            .hero h1 {
                font-size: 2.5rem;
            }

            .hero p {
                font-size: 1rem;
            }

            .nav-links {
                display: none;
            }

            .features-grid, .docs-cards {
                grid-template-columns: 1fr;
            }
        }
    </style>
</head>
<body>
<!-- 导航栏 -->
<header>
    <div class="container">
        <nav>
            <div class="logo">
                <i class="fas fa-shield-alt"></i>
                <span>Spring Security 6</span>
            </div>
            <ul class="nav-links">
                <li><a href="#features" target="_blank">特性</a></li>
                <li><a href="#docs" target="_blank">文档</a></li>
                <li><a href="/doc.html" target="_blank">API 文档</a></li>
                <li><a href="/swagger-ui/index.html" target="_blank">Swagger UI</a></li>
                <li><a href="/login-page" target="_blank">登录</a></li>
            </ul>
        </nav>
    </div>
</header>

<!-- 英雄区域 -->
<section class="hero">
    <div class="container">
        <div class="hero-content">
            <h1>掌握 Spring Security 6</h1>
            <p>学习最强大的Java安全框架，保护您的应用程序免受现代安全威胁。Spring Security
                6提供了全面的身份验证和授权功能，让您的应用安全无忧。</p>
            <div>
                <a class="btn" href="#docs">开始学习</a>
                <a class="btn btn-outline" href="/doc.html" target="_blank">查看API文档</a>
            </div>
        </div>
    </div>
</section>

<!-- 特性部分 -->
<section class="features" id="features">
    <div class="container">
        <div class="section-title">
            <h2>Spring Security 6 核心特性</h2>
            <p>Spring Security 6引入了许多强大的新功能，使应用程序安全比以往任何时候都更简单、更强大。</p>
        </div>
        <div class="features-grid">
            <div class="feature-card">
                <div class="feature-icon">
                    <i class="fas fa-user-lock"></i>
                </div>
                <h3>现代化的认证</h3>
                <p>支持OAuth 2.0、OpenID Connect、SAML 2.0等多种认证协议，满足现代应用的安全需求。</p>
            </div>
            <div class="feature-card">
                <div class="feature-icon">
                    <i class="fas fa-key"></i>
                </div>
                <h3>强大的授权</h3>
                <p>细粒度的权限控制，支持方法级安全、领域对象安全等多种授权模式。</p>
            </div>
            <div class="feature-card">
                <div class="feature-icon">
                    <i class="fas fa-shield-virus"></i>
                </div>
                <h3>防护机制</h3>
                <p>内置CSRF防护、点击劫持防护、内容安全策略等安全机制，保护应用免受常见攻击。</p>
            </div>
        </div>
    </div>
</section>

<!-- 文档部分 -->
<section class="docs" id="docs">
    <div class="container">
        <div class="section-title">
            <h2>学习资源与文档</h2>
            <p>探索我们的文档和工具，快速掌握Spring Security 6的强大功能。</p>
        </div>
        <div class="docs-cards">
            <div class="doc-card">
                <div class="doc-image"></div>
                <div class="doc-content">
                    <h3>API 文档</h3>
                    <p>详细的API参考文档，包含所有类、方法和配置选项的详细说明，帮助您充分利用Spring Security
                        6的所有功能。</p>
                    <a class="btn" href="/doc.html" target="_blank">查看API文档</a>
                </div>
            </div>
            <div class="doc-card">
                <div class="doc-image"></div>
                <div class="doc-content">
                    <h3>Swagger UI</h3>
                    <p>交互式API文档，可以直接在浏览器中测试API端点，查看请求和响应示例，加快开发流程。</p>
                    <a class="btn" href="/swagger-ui/index.html" target="_blank">访问Swagger UI</a>
                </div>
            </div>
        </div>
    </div>
</section>

<!-- 页脚 -->
<footer>
    <div class="container">
        <div class="footer-content">
            <div class="footer-column">
                <h3>关于 Spring Security</h3>
                <p>Spring
                    Security是一个功能强大且高度可定制的身份验证和访问控制框架，是保护基于Spring的应用程序的事实标准。</p>
                <div class="social-links">
                    <a href="#"><i class="fab fa-github"></i></a>
                    <a href="#"><i class="fab fa-twitter"></i></a>
                    <a href="#"><i class="fab fa-stack-overflow"></i></a>
                </div>
            </div>
            <div class="footer-column">
                <h3>快速链接</h3>
                <ul class="footer-links">
                    <li><a href="#features" target="_blank">核心特性</a></li>
                    <li><a href="#docs" target="_blank">学习资源</a></li>
                    <li><a href="/doc.html" target="_blank">API文档</a></li>
                    <li><a href="/swagger-ui/index.html" target="_blank">Swagger UI</a></li>
                </ul>
            </div>
            <div class="footer-column">
                <h3>联系我们</h3>
                <p><i class="fas fa-envelope"></i> security@example.com</p>
                <p><i class="fas fa-globe"></i> www.springsecurity.org</p>
            </div>
        </div>
        <div class="footer-bottom">
            <p>&copy; 2023 Spring Security 学习中心. 保留所有权利.</p>
        </div>
    </div>
</footer>
</body>
</html>